const state = {
  isLoading: false
}

const mutations = {
  TOGGLE_IS_LOADING(state){
    state.isLoading = !state.isLoading
  }
}

const actions = {
  toggleIsLoading({ commit }){
    commit('TOGGLE_IS_LOADING')
  }
}

export default {
  state,
  mutations,
  actions
}
